package cn.edu.scau.cmi.zhangjiankun.comprehension.domain;

public class Student{

	private volatile static Student student;
	
	private Student() {
	}
	
	public static Student getStudent() {
		if(student==null) {
			synchronized (Student.class) {
				if(student == null) {
					student = new Student();
				}
			}
		}
		return student;
	}

	private Long id=1L;
	private String name;
	private Long number;
	private Long tutor;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public Long getNumber() {
		return number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getTutor() {
		return tutor;
	}

	public void setTutor(Long tutor) {
		this.tutor = tutor;
	}
	
}

